package com.cloudsigns.factorymanager2;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class RegisterActivity extends BaseActivity {
    private RelativeLayout rl_back;
    private TextView tv_title;
    private EditText edt_company_name,edt_detail_address;
    private Button btn_next;

    @Override
    protected void onBaseCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_register);
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        rl_back=findViewById(R.id.rl_back);
        tv_title=findViewById(R.id.tv_title);
        edt_company_name=findViewById(R.id.edt_company_name);
        edt_detail_address=findViewById(R.id.edt_detail_address);
        btn_next=findViewById(R.id.btn_next);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
        rl_back.setVisibility(View.VISIBLE);
        tv_title.setText(getResources().getString(R.string.register));
    }

    @Override
    public void setListener() {
        rl_back.setOnClickListener(this);
        btn_next.setOnClickListener(this);
    }

    @Override
    public void widgetClick(View view) {
        switch (view.getId()){
            case R.id.rl_back:
                finish();
                break;
                // 下一步
            case R.id.btn_next:
                break;
        }
    }
}
